# This file is generated manually by ChenJie@HUST

TARGET=xcat
OBJS=main.o \
     cardif.o \
     md5.o \
     ping.o \
     log.o \
     client_cernet.o \
     client_ruijie.o \
     supplicant.o

CC=gcc
LD=gcc
CFLAGS= -Wall
#LDFLAGS=
LDFLAGS=

.c.o:
	$(CC) $(CFLAGS) -c -o $@ $<

all:	$(TARGET)

clean:
	rm -f $(OBJS) $(TARGET)
	
rebuild:
	make clean all

install:$(TARGET)
	

$(TARGET):$(OBJS)
	$(LD) -o $(TARGET) $(LDFLAGS) $(OBJS)

dep:
	sed '/\#\#\# Dependencies/q' < Makefile > tmp_make
	(for i in *.c;do echo -n "";$(CPP) -M $$i;done) >> tmp_make
	cp tmp_make Makefile
	rm -f tmp_make

### Dependencies:
